package com.itheima.homeworkRedis.rediswork;

import com.itheima.homeworkRedis.bean.Person;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;

import javax.annotation.Resource;

/**
 * @Author: Bytezero_zhengLei
 * @Date: 2024/7/31 21:07
 * @Project_Name: operate
 * @Email: 420498246@qq.com
 * @Description:
 * @TODO:  it's wrong
 */

public class RedisOperate {

//    @Resource
//    private  RedisTemplate<String, Person> redisTemplate;
//
//    public static void main(String[] args) {
//
//        savePersonToRedis();
//    }
//
//    public static void savePersonToRedis(){
////        ValueOperations<String, Person> ops = redisTemplate.opsForValue();
////        Person person = new Person("1","zhenglei",24);
////        ops.set("name",person);
//
//
//    }


}
